<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <title>我的讲座</title>
</head>
<body>
<h2>我的讲座</h2>
<a href="${pageContext.request.contextPath}/expert/lecture/publish">发布讲座</a>
<br><br>
<c:forEach var="lecture" items="${lectures}">
    <div style="border: 1px solid #ccc; padding: 10px; margin-bottom: 10px;">
        <h3>${lecture.title}</h3>
        <p>${lecture.content}</p>
        <p>发布时间：${lecture.createTime}</p>
        <br>
        <a href="${pageContext.request.contextPath}/expert/lecture/delete/${lecture.id}">删除</a>
    </div>
</c:forEach>
</body>
</html>